package com.dao;

import java.util.HashMap;
import java.util.Map;

import javax.ejb.Stateless;

import com.model.User;

@Stateless
public class UserDAO extends GenericDAO<User> {

	public UserDAO() {
		super(User.class);
	}

	public User findUserByLogin(String login){
		Map<String, Object> parameters = new HashMap<String, Object>();
		parameters.put("login", login);		
		return super.findOneResult(User.FIND_BY_LOGIN, parameters);
	}

}